package service.Impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import qingke.mybatis.dao.StoreVipMapper;
import qingke.mybatis.pojo.StoreVip;
import service.StoreVipService;

@Service("StoreVipService")
public class StoreVipServiceImpl implements StoreVipService {

	@Autowired
	private StoreVipMapper storeVipMapper;

	@Override
	public List<StoreVip> getStoreVipByUserId(int userId) {
		return this.storeVipMapper.getStoreVipByUserId(userId);
	}

	@Override
	public int cancelVip(int StoreVipId) {
		return this.storeVipMapper.cancelVip(StoreVipId);
	}

}
